package com.dongwu.manager.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.dongwu.common.dao.BaseDao;
import com.dongwu.manager.entity.AppVersion;

@Repository
public interface AppVersionDao  extends BaseDao<AppVersion, String> {

	@Query("select t from AppVersion t where t.vcode = (select max(b.vcode)  from AppVersion as b where b.deviceType=?1)  and t.deviceType=?1")
	AppVersion findByDeviceType(Integer devType);
}
